#pragma once


// CInPlaceDateTime

class CInPlaceDateTime : public CDateTimeCtrl
{
	DECLARE_DYNAMIC(CInPlaceDateTime)

public:
	CInPlaceDateTime();
	virtual ~CInPlaceDateTime();

public:
    CInPlaceDateTime(CWnd* pParent, CRect& rect, DWORD dwStyle, UINT nID,
                 int nRow, int nColumn, CString sInitText, UINT nFirstChar);

protected:
	DECLARE_MESSAGE_MAP()
	
    void EndEdit();
private:	
    int     m_nRow;
    int     m_nColumn;
    CString m_sInitText;
    UINT    m_nLastChar;
	BOOL	m_bExitOnArrows; 
protected:
	virtual void PostNcDestroy();
public:
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
};

 
